package com.ruoyi.project.product.sku.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 商品sku对象 product_sku
 * 
 * @author wyh
 * @date 2024-08-05
 */
public class ProductSku extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 产品id */
    @Excel(name = "产品id")
    private Long productId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** sku */
    @Excel(name = "sku")
    private String skuCode;

    /** sku属性 */
    @Excel(name = "sku属性")
    private String skuAttribute;

    /** 图片 */
    @Excel(name = "图片")
    private String icon;

    /** 成本价 */
    @Excel(name = "成本价")
    private BigDecimal costPrice;

    /** 售价 */
    @Excel(name = "售价")
    private BigDecimal price;

    /** 原价 */
    @Excel(name = "原价")
    private BigDecimal originalPrice;

    /** 折扣 */
    @Excel(name = "折扣")
    private BigDecimal discount;

    /** 库存 */
    @Excel(name = "库存")
    private Long stockQuantity;

    /** 重量(KG) */
    @Excel(name = "重量(KG)")
    private BigDecimal weight;

    /** 体积(m²) */
    @Excel(name = "体积(m²)")
    private BigDecimal volume;

    /** 是否显示 */
    @Excel(name = "是否显示")
    private String isReveal;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setSkuCode(String skuCode) 
    {
        this.skuCode = skuCode;
    }

    public String getSkuCode() 
    {
        return skuCode;
    }
    public void setSkuAttribute(String skuAttribute) 
    {
        this.skuAttribute = skuAttribute;
    }

    public String getSkuAttribute() 
    {
        return skuAttribute;
    }
    public void setIcon(String icon) 
    {
        this.icon = icon;
    }

    public String getIcon() 
    {
        return icon;
    }
    public void setCostPrice(BigDecimal costPrice) 
    {
        this.costPrice = costPrice;
    }

    public BigDecimal getCostPrice() 
    {
        return costPrice;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setOriginalPrice(BigDecimal originalPrice) 
    {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getOriginalPrice() 
    {
        return originalPrice;
    }
    public void setDiscount(BigDecimal discount) 
    {
        this.discount = discount;
    }

    public BigDecimal getDiscount() 
    {
        return discount;
    }
    public void setStockQuantity(Long stockQuantity) 
    {
        this.stockQuantity = stockQuantity;
    }

    public Long getStockQuantity() 
    {
        return stockQuantity;
    }
    public void setWeight(BigDecimal weight) 
    {
        this.weight = weight;
    }

    public BigDecimal getWeight() 
    {
        return weight;
    }
    public void setVolume(BigDecimal volume) 
    {
        this.volume = volume;
    }

    public BigDecimal getVolume() 
    {
        return volume;
    }
    public void setIsReveal(String isReveal) 
    {
        this.isReveal = isReveal;
    }

    public String getIsReveal() 
    {
        return isReveal;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("productName", getProductName())
            .append("skuCode", getSkuCode())
            .append("skuAttribute", getSkuAttribute())
            .append("icon", getIcon())
            .append("costPrice", getCostPrice())
            .append("price", getPrice())
            .append("originalPrice", getOriginalPrice())
            .append("discount", getDiscount())
            .append("stockQuantity", getStockQuantity())
            .append("weight", getWeight())
            .append("volume", getVolume())
            .append("isReveal", getIsReveal())
            .toString();
    }
}
